package cn.school.app.service.impl;

import cn.school.app.dao.TuitionPaymentDao;
import cn.school.app.service.TuitionPaymentService;
import cn.school.common.utils.SysUserUtils;
import cn.school.pay.vo.ChargeItemVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TuitionPaymentServiceImpl implements TuitionPaymentService {

    @Resource
    TuitionPaymentDao tuitionPaymentDao;

    @Override
    public List<ChargeItemVO> findStudentTuition() {
        String userId = SysUserUtils.getStudentUser().getStudentId();
        List<ChargeItemVO> list = tuitionPaymentDao.findStudentTuition(userId);
        return list;
    }

}
